<?php
/**
 * Created by PhpStorm.
 * User: 10927
 * Date: 2018/4/8
 * Time: 12:54
 */

namespace core\lib;
use core\lib\config;

class log
{
    public static $class;
    /**
     *  1 确定日志存储方式
     *
     *  2 写日志
     */
    public static function init()
    {
        //确定储存方式
        $drive = config::get('DRIVE','log');
        $class = '\core\lib\drive\log\\'.$drive;
        self::$class = new $class;
    }
    public static function log($massige,$file = 'log'){
        self::$class->log($massige,$file);
    }
}